#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QProgressBar>
#include <QTreeWidget>
#include <QTableView>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

    void addRoot(QString name,QString description);

    void addChild(QTreeWidgetItem *parent,int name,int pid,int li,int lf);


public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_actionAbrir_triggered();

    void on_actionSalir_triggered();

    void on_actionCerrar_archivo_triggered();

    void on_actionIniciar_triggered();

    void on_actionFinalizar_triggered();

    void on_actionPausa_triggered();

    void on_actionContinuar_triggered();

    void on_actionTiempo_triggered();

    void readyReadStandardOutput();

    void readyReadStandardError();

    void updateResults();


    void on_treeWidget_itemClicked(QTreeWidgetItem *item, int column);

private:
    Ui::MainWindow *ui;
    QLabel *Statlabel;
    QProgressBar *Statprogress;
    QTableView *model;



};

#endif // MAINWINDOW_H
